home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 34.zip
/
BS1 part 34
/
FredFish PD 314.adf
/
Zc
/
zcsrc.lzh
/
IOLib
/
stdio
/
setbuf.c
< prev
next >
Wrap
C/C++ Source or Header
|
1988-11-09
|
332b
|
21 lines
#include <stdio.h>
void setbuf(fp, buf)
register FILE *fp;
unsigned char *buf;
{
fp->_flag &= ~(_IOFBF | _IOLBF | _IONBF | _IOMYBUF);
fp->_cnt = 0;
fp->_ptr = buf;
if(fp->_base = buf) /* assignment intentional */
{
fp->_flag |= _IOFBF;
fp->_bsiz = BUFSIZ;
}
else
{
fp->_flag |= _IONBF;
fp->_bsiz = 0;
}
}